/*******************************************************************************
 * Copyright (c) 2011 Irineu Martins de Lima Moura (imlm2).
 * This file is part of JBeat.
 * 
 *     JBeat is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     JBeat is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with JBeat.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Contributors:
 *     Irineu Martins de Lima Moura (imlm2) - initial API and implementation
 ******************************************************************************/
package br.ufpe.cin.imlm2.jbeat.soot.icpoints.tags;

import java.util.HashSet;
import java.util.Set;

import soot.tagkit.AttributeValueException;
import soot.tagkit.Tag;
import br.ufpe.cin.imlm2.jbeat.soot.icpoints.StmtLabel;

public class StmtLabelsTag implements Tag {
	
	public static final String TAG_NAME = "StmtLabelsTag";
	
	private Set<StmtLabel> labels = new HashSet<StmtLabel>();

	public void addLabel(StmtLabel s){
		this.labels.add(s);
	}
	
	public void clearLabels(){
		this.labels.clear();
	}
	
	public boolean containsLabel(StmtLabel s){
		return this.labels.contains(s);
	}
	
	
	@Override
	public String getName() {
		return TAG_NAME;
	}

	@Override
	public byte[] getValue() throws AttributeValueException {
		return null;
	}

}
